package com.backstage.utils;

import org.apache.commons.collections.map.HashedMap;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

public class JsonResult implements Serializable {

    private Boolean success;
    private String message;
    private String code;
    //private Integer total;
    //private List<?> rows;
    private Map<String, Object> pager = new HashedMap();
    private Integer errorCode;
    private Object data;


    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Map<String, Object> getPager() {
        return pager;
    }

    public void setPager(Map<String, Object> pager) {
        this.pager = pager;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
